package com.lambdajEx;

/**
 * @author lihz
 * 
 */
public class SingelonEx {

	private SingelonEx() {

	}

	private static class SingelonHolder {

		private static SingelonEx INSTANCE = new SingelonEx();
	}

	public static SingelonEx getInstance() {
		return SingelonHolder.INSTANCE;
	}

	public String sayHello() {
		return "helloworld";
	}

	public static void main(String[] args) {
		SingelonEx.getInstance().sayHello();
	}
}
